﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Mvc.Html;
using Wicresoft.UnifyShow.Business.Models;

namespace Wicresoft.UnifyShow2.Portal.Extensions
{
    public static class PageRenderExtension
    {

        #region 计划管理
        public static string RenderPlanPendingList(this HtmlHelper html)
        {
            return html.Partial("PlanPartial/_PendingList", null).ToHtmlString();
        }

        public static string RenderCheckInList(this HtmlHelper html)
        {
            return html.Partial("PlanPartial/_CheckInList", null).ToHtmlString();
        }

        public static string RenderMyCreatePlanList(this HtmlHelper html)
        {
            return html.Partial("PlanPartial/_MyCreateList", null).ToHtmlString();
        }

        public static string RenderClosedList(this HtmlHelper html)
        {
            return html.Partial("PlanPartial/_ClosedList", null).ToHtmlString();
        }

        public static string RenderSearchPage(this HtmlHelper html, ViewDataDictionary viewData)
        {
            return html.Partial("PlanPartial/_Search", null, viewData).ToHtmlString();
        }

        public static string RenderPlanSearchPage(this HtmlHelper html, ViewDataDictionary viewData)
        {
            return html.Partial("PlanPartial/_PlanSearch", null, viewData).ToHtmlString();
        }

        public static string RenderConfigInspectionPage(this HtmlHelper html)
        {
            return html.Partial("PlanPartial/_ConfigInspection", null).ToHtmlString();
        }

        public static string RenderOverFlagTip(this HtmlHelper html)
        {
            return html.Partial("PlanPartial/_OverFlagTip", null).ToHtmlString();
        }

        #endregion

        #region 报表查询

        //合并工单查询
        public static string RenderWorkOrderList(this HtmlHelper html, ViewDataDictionary viewData)
        {
            return html.Partial("ReportViewPartial/_WorkOrderList", viewData).ToHtmlString();
        }

        //事件综合查询
        public static string RenderEventList(this HtmlHelper html, ViewDataDictionary viewData)
        {
            return html.Partial("ReportViewPartial/_EventList", viewData).ToHtmlString();
        }

        //变更查询
        public static string RenderChangeList(this HtmlHelper html, ViewDataDictionary viewData)
        {
            return html.Partial("ReportViewPartial/_ChangeList", viewData).ToHtmlString();
        }

        //任务查询
        public static string RenderTaskList(this HtmlHelper html, ViewDataDictionary viewData)
        {
            return html.Partial("ReportViewPartial/_TaskList", viewData).ToHtmlString();
        }

        //告警查询
        public static string RenderAlertList(this HtmlHelper html, ViewDataDictionary viewData)
        {
            return html.Partial("ReportViewPartial/_AlertList", viewData).ToHtmlString();
        }

        //硬件资产查询
        public static string RenderHardwareList(this HtmlHelper html, ViewDataDictionary viewData)
        {
            return html.Partial("ReportViewPartial/_HardwareList", viewData).ToHtmlString();
        }

        //软件资产查询
        public static string RenderSoftwareList(this HtmlHelper html, ViewDataDictionary viewData)
        {
            return html.Partial("ReportViewPartial/_SoftwareList", viewData).ToHtmlString();
        }

        //应用系统资产查询
        public static string RenderBusinessSystemList(this HtmlHelper html, ViewDataDictionary viewData)
        {
            return html.Partial("ReportViewPartial/_BusinessSystemList", viewData).ToHtmlString();
        }

        #endregion
    }
}